package com.huawei.appgallery.assistantdock.gamemode.card;

import android.content.Context;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import o.azc;
import o.beo$d;
import o.beo.f;
import o.bif.a;
import o.bif.d;
import o.bii;
import o.biu;
import o.bix;
import o.ContentManager;
import o.fam;

public class GameKeepLuminanceCardBuoy extends BuoyBaseEnterCard {
    public GameKeepLuminanceCardBuoy(Context context) {
        super(context);
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        this.ˊ.setText(f.ʼॱ);
        this.ॱ = bii.ˏॱ().ˊ() == a.OPEN;
        ॱॱ();
    }

    void ˋ() {
        boolean z = true;
        this.ॱ = !this.ॱ;
        if (bii.ˊ(this.ॱ ? a.OPEN : a.CLOSE)) {
            ॱॱ();
            if (biu.ˋ().ʻॱ() && this.ॱ) {
                Context ॱ = azc.ॱ(ContentManager.getInstant().getContext());
                fam.ॱ().ॱ(ॱ, new bix(ॱ));
                biu.ˋ().ॱᐝ();
            }
            ʻ();
            ˏ(this.ॱ ? "STATE2" : "STATE1");
            return;
        }
        if (this.ॱ) {
            z = false;
        }
        this.ॱ = z;
    }

    String ᐝ() {
        return d.GSS_GAME_KEEP_LUMINANCE.ˊ();
    }

    void ॱॱ() {
        this.ʼ.setBackgroundResource(this.ॱ ? beo$d.ˌ : beo$d.ˍ);
    }
}
